#include <stdio.h>

int fun1(unsigned word){
	return (int) ((word << 24) >> 24);
}

int fun2(unsigned word){
	return (((int) word << 24) >> 24);
}

int main(){
	printf("0x00000076:\t%8x\t%8x\n",fun1(0x00000076),fun2(0x00000076));
	printf("0x87654321:\t%8x\t%8x\n",fun1(0x87654321),fun2(0x87654321));
	printf("0x000000c9:\t%8x\t%8x\n",fun1(0x000000c9),fun2(0x000000c9));
	printf("0xedcba987:\t%8x\t%8x\n",fun1(0xedcba987),fun2(0xedcba987));
	return 0;
}
